/** 
 * Copyright (C), 2010-2012, AIYOU Software Co.,Ltd. ALL RIGHTS RESERVED. 
 * File name:UserInviteService.java
 * Version:1.0
 * Date:Dec 7, 2011
 * Description: 
 * author:whh
 */
package com.tietiao.service.userinvite;

import com.tietiao.dao.model.UserInvite;
/**
 * 邀请码信息接口
 */
public interface UserInviteService {
	
	/**
	 * 
	 * 功能：用户邀请好友，查入邀请信息
	 * @author: whh
	 * @Date: 2011-12-07
	 *
	 * @return 消息是否创建成功
	 */
	public int insertUserInvite(UserInvite userInvite);
	
	/**
	 * 
	 * 功能：更新邀请码（一般不用更新）
	 * @author: whh
	 * @Date: 2011-12-07
	 *
	 * @return 是否变更成功 
	 */
	public int updateUserInvite(UserInvite userInvite);
	
	/**
	 * 
	 * 功能：通过邀请码，获得邀请人及相应的邀请信息(邀请码是否可用等)
	 * @author: whh
	 * @Date: 2011-12-07
	 * @param inviteCode 邀请码
	 * @return 邀请相关信息
	 */
	public UserInvite getUserInviteByCode(String inviteCode);
}
